package com.dotstone.chipism.application;

import org.xutils.x;

import com.lib.funsdk.support.FunSupport;
import com.tiqiaa.icontrol.util.TiqiaaService;
import com.umeng.analytics.MobclickAgent;
import com.umeng.analytics.social.UMSocialService;
import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;
import com.umeng.socialize.common.QueuedWork;

import android.app.Application;
import android.support.multidex.MultiDex;

public class MyApplication extends Application {
	private static MyApplication application;

	public static MyApplication getInstance() {
		return application;
	}

	public static String APP_ID = "wxdb48d0731e77cb93";
//	private UMSocialService mController = UMServiceFactory.getUMSocialService("com.umeng.login");
	public void onCreate() {
		super.onCreate();
		x.Ext.init(this);
		TiqiaaService.init(this, "XsJ0AAvrbgjO7HzxyG0nWdD0");// S7O93RCs1KCnWliQPjtHls3Z
		QueuedWork.isUseThreadPool = false;
		Config.DEBUG = true;
		UMShareAPI.get(this);
		PlatformConfig.setWeixin("wxdb48d0731e77cb93", "07f6b155c13321919f82641595fa0fcd");
		MobclickAgent.setCatchUncaughtExceptions(true);
		MobclickAgent.setDebugMode(true);

		/**
		 * 以下是FunSDK初始化
		 */
		FunSupport.getInstance().init(this);
		MultiDex.install(getApplicationContext());
//        Fresco.initialize(this);

    };

	public void exit() {

		FunSupport.getInstance().term();
	}


}
